package o;

import android.graphics.drawable.Drawable;
import android.view.View;
import java.lang.ref.WeakReference;

public class pz extends SkinAttr {

    static final class e extends fkz<SkinAttr, Drawable> {
        private WeakReference<View> ˏ;

        public /* synthetic */ void ॱ(Object obj) {
            ˎ((Drawable) obj);
        }

        private e(View view) {
            this.ˏ = new WeakReference(view);
        }

        public void ˎ(Drawable drawable) {
            View view = (View) this.ˏ.get();
            if (view != null) {
                gcr.ॱ(view, drawable);
            }
        }
    }

    public pz() {
        this.ˎ = 0;
    }

    public void ˎ(View view, boolean z) {
        if (!(view instanceof View)) {
            return;
        }
        if ("drawable".equals(this.attrValueTypeName) || "color".equals(this.attrValueTypeName)) {
            this.ʽ = "drawable";
            fks.ˎ(view.getContext(), this, new e(view)).ॱ(z);
        }
    }
}
